Pull Docker Images
info
This is an optional step to pull container images needed by the StackGen stack into a private container registry.
This page lays out the steps to be followed in order to pull the container images needed by the StackGen stack into a private container registry like ECR.
Step 1: Clone the image-override script
git clone https://github.com/OpsVerseIO/installers
cd installers/k8s-helm/image-override
Step 2: Login container registries
info
Contact your StackGen customer success manager to get your credentials to the StackGen container registry
Login to the StackGen container registries by running the following commands:
docker login registry.devopsnow.io/public
docker login registry.devopsnow.io/private
Login to your container registry. The steps could vary based on the type of your registry. For AWS ECR,
aws ecr get-login-password --region <region> | docker login --username AWS --password-stdin <aws_account_id>.dkr.ecr.<region>.amazonaws.com
Step 3: Run the script
Setup the following environment variables:
export CONTAINER_TARGET_REGISTRY=<aws_account_id>.dkr.ecr.<region>.amazonaws.com
export CONTAINER_REGION=<region>
export REPOSITORY_PREFIX=<your-repository-prefix>_opsverse
sudo -E bash image-pull-push.sh